package com.poh.mapper;

import com.poh.pojo.UHScore;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UHScoreMapper {
    int addUHScore(UHScore uhScore);
    UHScore queryUHScoreByHomeworkId(@Param("homeworkId") String homeworkId, @Param("userId") int userId);
    int updateHomeworkScoreByUHId(UHScore uhScore);
    List<UHScore> queryHomeworkByCourseId(@Param("courseId") int courseId, @Param("userId") int userId);
}
